home comics writing pictures archive about

ReadHex4Test.asm

Language: 8080 Assembly
Last Modified: 2022-11-12 4:27:45 PM UTC
File Size: 516 bytes
http://www.penguinstew.ca/example/AltairHexDump/ReadHex4Test.asm
.org 0
LXI SP, 173000Q ; 000000: 061 000 366 Init stack pointer
MVI A, 3Q ; 000003: 076 003 Clear/Init 2SIO port
OUT 20Q ; 000005: 323 020
MVI A, 25Q ; 000007: 076 025
OUT 20Q ; 000011: 323 020
LOOP: CALL ReadHex4 ; 000013: 315 250 366 Read nibble
CALL PrintHex4 ; 000016: 315 355 366 Print nibble
JMP LOOP ; 000021: 303 013 000
1
2
3
4
5
6
7
8
9